package com.redwine.app.net.responses;

/**
 * 检查版本更新
 * 作者：gassion on 17/8/12 11:51
 * 最可怕的敌人，就是没有坚强的信念。
 */

public class AppCheckVersionResponse extends BaseResponse {


    /**
     * data : {"version":"1.0.0","version_url":"baidu.com","update":"0"}
     */

    private DataEntity data;

    public DataEntity getData() {
        return data;
    }

    public void setData(DataEntity data) {
        this.data = data;
    }

    public static class DataEntity {
        /**
         * version : 1.0.0
         * version_url : baidu.com
         * update : 0
         */

        private String version;
        private String version_url;
        private String update;
        private String version_info;

        public String getVersion_info() {
            return version_info;
        }

        public void setVersion_info(String version_info) {
            this.version_info = version_info;
        }

        public boolean isForcedUpdate() {
            return "1".equals(version);
        }

        public String getVersion() {
            return version;
        }

        public void setVersion(String version) {
            this.version = version;
        }

        public String getVersion_url() {
            return version_url;
        }

        public void setVersion_url(String version_url) {
            this.version_url = version_url;
        }

        public String getUpdate() {
            return update;
        }

        public void setUpdate(String update) {
            this.update = update;
        }
    }
}
